#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<stdio.h>
#include<algorithm>
using namespace std;
int main()
{
	int s1, s2, s3;
	cin >> s1 >> s2 >> s3;
	int a[85] = { 0 };
	for (int i = 1; i <= s1; i++)
	{
		for (int j = 1; j <= s2; j++)
		{
			for (int k = 1; k <= s3; k++)
			{
				a[i + k + j]++;
			}
		}
	}

	int max = a[3], count = 3;
	for (int i = 3; i <= s1 + s2 + s3;i++)
	{
		if (a[i] > max)
		{
			max = a[i];
			count = i;
		}
	}
	cout << count;
	return 0;   
	
}